const path = require('path')


const resolve = src => path.resolve(__dirname, src)

module.exports = {
  webpack: {
    alias: {
      '@': resolve('src'),
      'assets': resolve('src/assets'),
      'components': resolve('src/components'),
      'config': resolve('src/config'),
      'pages': resolve('src/pages'),
      'services': resolve('src/services'),
      'utils': resolve('src/utils')
    }
  },
  babel: {
    plugins: [
      [
        "import",
        {
          "libraryName": "antd",
          "libraryDirectory": "es",
          "style": true //设置为true即是less
        }
      ]
    ]
  }
}


